import { BizError } from 'src/typings'

const assert = {
  throwBizError: (expression: boolean, message: string) => {
    if (expression) {
      throw new BizError(message)
    }
  }
}

export { assert }